package com.sx.epidemic_system.service.impl;

import com.sx.epidemic_system.entity.Patient;
import com.sx.epidemic_system.mapper.NowPatientMapper;
import com.sx.epidemic_system.service.NowPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class NowPatientServiceImpl implements NowPatientService {
    @Autowired
    private NowPatientMapper nowPatientMapper;
    private Patient patient=new Patient();

    @Override
//    获取国内现有确诊
    public int getNowConfirmed() {
        return nowPatientMapper.getNowConfirmed();
    }

    //    获取国内现有本土
    @Override
    public int getNowLocal() {
        return nowPatientMapper.getNowLocal();
    }
//    查询国内现有境外
    @Override
    public int getNowOverseas() {
        return nowPatientMapper.getNowOverseas();
    }
//查询国内现有无症状
    @Override
    public int getNowAspm() {
        return nowPatientMapper.getNowAspm();
    }

//    查询各省现有确诊
    @Override
    public int getNowPvCon(String province) {
        return nowPatientMapper.getNowPvCon(province);
    }


}
